package com.softeem.musicserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 用户表
 * @TableName user
 */
@Schema(description = "用户信息")
@TableName(value ="user")
@Data
public class User implements Serializable {
    /**
     * 用户id
     */
    @Schema(description = "用户id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    @Schema(description = "用户名")
    private String username;

    /**
     * 密码
     */
    @Schema(description = "密码")
    private String password;

    /**
     * 昵称
     */
    @Schema(description = "昵称")
    private String nickname;

    /**
     * 邮箱地址
     */
    @Schema(description = "邮箱地址")
    private String email;

    /**
     * 电话
     */
    @Schema(description = "电话")
    private String phone;

    /**
     * 所在城市
     */
    @Schema(description = "所在城市")
    private String city;

    /**
     * 性别 1-男 2-女
     */
    @Schema(description = "性别 1-男 2-女")
    private Integer sex;

    /**
     * 生日
     */
    @Schema(description = "生日")
    private Date birth;

    /**
     * 头像地址
     */
    @Schema(description = "头像地址")
    private String imgpath;

    /**
     * 随机盐
     */
    @Schema(description = "生日")
    private String salt;

    /**
     * 账户状态 0-正常 1-禁用
     */
    @Schema(description = "账户状态 0-正常 1-禁用",example = "0")
    private Integer status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}